package cn.genmer.test.security.model;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class Chinese implements Person {
    private Logger logger = LoggerFactory.getLogger(Person.class);
    
    public Chinese() {
        super();
        logger.info("chinese构造方法执行 ==> Chinese method : 正在生成一个Chinese实例");
    }

    @Override
    public String say(String name) {
        logger.info("chinese实例执行了方法 : say {}", name);
        return name + " hello, JDK implement AOP";
    }

    @Override
    public void eat(String food) {
        logger.info("chinese示例执行力方法 ==> eat method : eat {}", food);
    }
    
}